package com.it.system.mapper;

import com.it.system.domain.Logininfo;
import com.it.system.domain.Menu;
import com.it.system.dto.LoginDTO;
import com.it.system.query.LogininfoQuery;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface LogininfoMapper {
    @Select("select * from tb_logininfo")
    List<Logininfo> findAll();
    @Select("select * from tb_logininfo where id=#{id}")
    Logininfo findOne(Long id);
    @Delete("delete from tb_logininfo where id=#{id}")
    void deleteById(Long id);

    void add(Logininfo logininfo);

    void update(Logininfo logininfo);

    void deletePatchByIds(Long[] ids);

    List<Logininfo> queryPage(LogininfoQuery logininfoQuery);

    Logininfo findLoginInfo(LoginDTO loginDTO);

    List<String> findPs(Long id);

    List<Menu> findMs(Long id);
}
